<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">

</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('import_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		 

		<div class="pd-20">
			<table cellpadding="2"  class="mini-table" cellspacing="2" width="100%">
				<tbody>
					<tr>
						<th width="100">上传附件：</th>
						<td>
							<input type="text" id="url" class="input-text" name="url" value="" style="width:200px;"/>
							<a href="javascript:;" id="uploadButton_s" class="btn btn-primary radius">上传文件</a>
							<span class="must_red">允许上次的文件类型：'xls','xlsx'</span>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	  	<div class="row cl">
	    	<div class="col-6 col-offset-3">
	      		<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
	    	</div>
	  	</div>
	</form>
</div>
</block>

<block name="script">
<css href="/Public/Assets/kindeditorforupload/themes/default/default.css" />
<js href="/Public/Assets/kindeditorforupload/kindeditor.js,/Public/Assets/kindeditorforupload/lang/zh_CN.js" />
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
	$('.mini-time').datepicker();

});

KindEditor.ready(function(K) {
	var editor = K.editor({
		allowFileManager : true
	});
	K('#uploadButton_s').click(function() {
		editor.loadPlugin('insertfile', function() {
			editor.plugin.fileDialog({
				fileUrl : K('#url').val(),
				clickFn : function(url, title) {
					K('#url').val(url);
					editor.hideDialog();
				}
			});
		});
	});
});
</script>
</block>